/**
 * Created by ${PRODUCT_NAME}.
 * User: ddascal
 * Date: 2/10/11
 * Time: 10:39 PM
 * To change this template use File | Settings | File Templates.
 */
package org.flexthinker.binding.form.support
{
    import flash.events.Event;
    import flash.events.EventDispatcher;

    public class EventListenerCounter
    {
        public var counter:int = 0;

        public function EventListenerCounter( dispatcher:EventDispatcher, eventType:String ):void
        {
            dispatcher.addEventListener(eventType, increaseCounter);
        }

        private function increaseCounter(event:Event):void
        {
            counter ++;
        }


    }
}
